<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
        var i = 1;
        while(i) {

            console.log(i);
            i ++;
            if(i > 100){
                break; // 终止跳出循环，必须放到switch 或者循环体中
            }
        }
    </script>

    <script>
        for(var i = 0; i < 100; i++){
            if(i % 7 == 0 || i % 10 == 7 || (i - i % 10) / 10 == 7){
                continue; // 终止本次循环，跳出本次循环体，然后继续i ++
            }
            console.log(i);
        }
    </script>
</body>
</html>